﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QRCodeNet
{
	public partial class FunSelDlg : Form
	{
		public FunSelDlg()
		{
			InitializeComponent();
		}

		private void ok_Click(object sender, EventArgs e)
		{
			Hide();
			switch (comboBox1.SelectedIndex)
			{
				case 0:
					new CompartionDlg().ShowDialog();
					break;
				default:
					break;
			}
			Show();
		}

		private void btnSetting_Click(object sender, EventArgs e)
		{
			Config old = new Config(Config.config);
			DialogResult result = new SettingDlg().ShowDialog();
			//Console.WriteLine(result.ToString());
			if (result != DialogResult.OK)
			{
				Config.config = new Config(old);
			}
		}
	}
}
